package com.zyj.springboothapim.service.impl;

import com.zyj.springboothapim.bean.Admin;
import com.zyj.springboothapim.bean.Repair;
import com.zyj.springboothapim.mapper.AdminMapper;
import com.zyj.springboothapim.mapper.RepairMapper;
import com.zyj.springboothapim.service.RepairService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RepairServiceImpl implements RepairService
{

    private RepairMapper repairMapper;

    @Autowired
    public void setRepairMapper(RepairMapper repairMapper){this.repairMapper = repairMapper;}

//    @Select("select * from repair_table}")

//    public Repair getComplaint();

    //获得修理的数据
    @Override
    public List<Repair> selectRepair()
    {
        return repairMapper.selectRepair();
    }
}
